<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script src='icreate.js'></script>
    </head>
    <body>
     <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    </body>
    <script>
    var Iobj0 = I();

    //toArray
    var Iobj =I('div');
    var arr =Iobj.toArray();	//转化为数组
    
    //get
    
    var Iobj3 =I('div');
    var o1=Iobj3.get(2); 	//等价于Iobj3[2];
    var o2=Iobj3.get(-1);	//从后往前的第一个；
    var o3=Iobj3.get();		//与 toArray 等价
    
    
    
    
    
    var Iobj =I('div');

    //eq
    var obj1 =Iobj.get(2);
    var obj2 =Iobj.eq(2);
    var obj4 =Iobj.eq(-1);
    var obj5 =Iobj.eq();
    console.log(obj5)

 	// fisrt, last
    var first = Iobj.first();
    var last = Iobj.last();
    </script>
</html>